package com.musicserver.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

@Data
@TableName(value ="comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer songId;
    private Integer songListId;
    /** 评论内容 */
    private String content;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /** 评价对象：0-歌曲，1-歌单 */
    private Byte type;
    /** 点赞数 */
    private Integer up;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
